import request from '@/utils/request'

export const ArrangeSectionApi = {
  /**
     *  获取班次下的班次段
     * @returns
     */
  getListByArrangeCode: (arrangeCode) => {
    return request({
      url: '/manage/intercity/arrangeSection/getListByArrangeCode',
      params: { arrangeCode },
      method: 'get'
    })
  },
  /**
     *  修改班次段状态
     * @returns
     */
  updateStatus: (data) => {
    return request({
      url: '/manage/intercity/arrangeSection/updateStatus',
      data,
      method: 'post'
    })
  },
  //删除班次段
  delete: (arrangeSectionCode) => {
    return request({
      url: '/manage/intercity/arrangeSection/delete',
      params: { arrangeSectionCode },
      method: 'get'
    })
  },
}
